package cn.kgc.tangcco.controller;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李昊哲
 * @Description
 * @create 2021/1/9 11:14
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {
    @RequestMapping(value = "/sendCode")
    public String sendCode(String mobile){
        System.out.printf(mobile);
        return RandomStringUtils.randomNumeric(4);
    }
}
